﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Survey.master" AutoEventWireup="false" CodeFile="SurveyList.aspx.vb" Inherits="SurveyList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <fieldset>
<legend><label>Vote In Survey</label></legend>
    <asp:GridView ID="DGSurveys" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="DSSurveyDetails">
        <Columns>
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="SurveyDetails.aspx?ID={0}" HeaderText="Survey" 
                Text="Vote?" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="DSSurveyDetails" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        SelectCommand="SELECT [Title], [ID] FROM [tblSurvey]"></asp:SqlDataSource>
        </fieldset>
</asp:Content>

